<?php

abstract class BaseCConsoleCommand extends CConsoleCommand
{
    protected function beforeAction($action,$params)
    {
        return Yii::app()->params['serverdown'] == 0;
    }
}
  